Optimal. Leaf size=29 \[ \frac {\sin (x)}{a}-\frac {2 \sin ^3(x)}{3 a}+\frac {\sin ^5(x)}{5 a} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 29, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {3254, 2713}
\begin {gather*} \frac {\sin ^5(x)}{5 a}-\frac {2 \sin ^3(x)}{3 a}+\frac {\sin (x)}{a} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2713
Rule 3254
Rubi steps
\begin {align*} \int \frac {\cos ^7(x)}{a-a \sin ^2(x)} \, dx &=\frac {\int \cos ^5(x) \, dx}{a}\\ &=-\frac {\text {Subst}\left (\int \left (1-2 x^2+x^4\right ) \, dx,x,-\sin (x)\right )}{a}\\ &=\frac {\sin (x)}{a}-\frac {2 \sin ^3(x)}{3 a}+\frac {\sin ^5(x)}{5 a}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.00, size = 27, normalized size = 0.93 \begin {gather*} \frac {\frac {5 \sin (x)}{8}+\frac {5}{48} \sin (3 x)+\frac {1}{80} \sin (5 x)}{a} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.15, size = 20, normalized size = 0.69
method | result | size |
default | \(\frac {\frac {\left (\sin ^{5}\left (x \right )\right )}{5}-\frac {2 \left (\sin ^{3}\left (x \right )\right )}{3}+\sin \left (x \right )}{a}\) | \(20\) |
risch | \(\frac {5 \sin \left (x \right )}{8 a}+\frac {\sin \left (5 x \right )}{80 a}+\frac {5 \sin \left (3 x \right )}{48 a}\) | \(27\) |
norman | \(\frac {-\frac {2 \tan \left (\frac {x}{2}\right )}{a}-\frac {14 \left (\tan ^{3}\left (\frac {x}{2}\right )\right )}{3 a}-\frac {42 \left (\tan ^{5}\left (\frac {x}{2}\right )\right )}{5 a}-\frac {86 \left (\tan ^{7}\left (\frac {x}{2}\right )\right )}{15 a}+\frac {86 \left (\tan ^{9}\left (\frac {x}{2}\right )\right )}{15 a}+\frac {42 \left (\tan ^{11}\left (\frac {x}{2}\right )\right )}{5 a}+\frac {14 \left (\tan ^{13}\left (\frac {x}{2}\right )\right )}{3 a}+\frac {2 \left (\tan ^{15}\left (\frac {x}{2}\right )\right )}{a}}{\left (1+\tan ^{2}\left (\frac {x}{2}\right )\right )^{7} \left (\tan ^{2}\left (\frac {x}{2}\right )-1\right )}\) | \(109\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 22, normalized size = 0.76 \begin {gather*} \frac {3 \, \sin \left (x\right )^{5} - 10 \, \sin \left (x\right )^{3} + 15 \, \sin \left (x\right )}{15 \, a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.40, size = 21, normalized size = 0.72 \begin {gather*} \frac {{\left (3 \, \cos \left (x\right )^{4} + 4 \, \cos \left (x\right )^{2} + 8\right )} \sin \left (x\right )}{15 \, a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 311 vs.
\(2 (22) = 44\).
time = 6.49, size = 311, normalized size = 10.72 \begin {gather*} \frac {30 \tan ^{9}{\left (\frac {x}{2} \right )}}{15 a \tan ^{10}{\left (\frac {x}{2} \right )} + 75 a \tan ^{8}{\left (\frac {x}{2} \right )} + 150 a \tan ^{6}{\left (\frac {x}{2} \right )} + 150 a \tan ^{4}{\left (\frac {x}{2} \right )} + 75 a \tan ^{2}{\left (\frac {x}{2} \right )} + 15 a} + \frac {40 \tan ^{7}{\left (\frac {x}{2} \right )}}{15 a \tan ^{10}{\left (\frac {x}{2} \right )} + 75 a \tan ^{8}{\left (\frac {x}{2} \right )} + 150 a \tan ^{6}{\left (\frac {x}{2} \right )} + 150 a \tan ^{4}{\left (\frac {x}{2} \right )} + 75 a \tan ^{2}{\left (\frac {x}{2} \right )} + 15 a} + \frac {116 \tan ^{5}{\left (\frac {x}{2} \right )}}{15 a \tan ^{10}{\left (\frac {x}{2} \right )} + 75 a \tan ^{8}{\left (\frac {x}{2} \right )} + 150 a \tan ^{6}{\left (\frac {x}{2} \right )} + 150 a \tan ^{4}{\left (\frac {x}{2} \right )} + 75 a \tan ^{2}{\left (\frac {x}{2} \right )} + 15 a} + \frac {40 \tan ^{3}{\left (\frac {x}{2} \right )}}{15 a \tan ^{10}{\left (\frac {x}{2} \right )} + 75 a \tan ^{8}{\left (\frac {x}{2} \right )} + 150 a \tan ^{6}{\left (\frac {x}{2} \right )} + 150 a \tan ^{4}{\left (\frac {x}{2} \right )} + 75 a \tan ^{2}{\left (\frac {x}{2} \right )} + 15 a} + \frac {30 \tan {\left (\frac {x}{2} \right )}}{15 a \tan ^{10}{\left (\frac {x}{2} \right )} + 75 a \tan ^{8}{\left (\frac {x}{2} \right )} + 150 a \tan ^{6}{\left (\frac {x}{2} \right )} + 150 a \tan ^{4}{\left (\frac {x}{2} \right )} + 75 a \tan ^{2}{\left (\frac {x}{2} \right )} + 15 a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.44, size = 22, normalized size = 0.76 \begin {gather*} \frac {3 \, \sin \left (x\right )^{5} - 10 \, \sin \left (x\right )^{3} + 15 \, \sin \left (x\right )}{15 \, a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.08, size = 19, normalized size = 0.66 \begin {gather*} \frac {\frac {{\sin \left (x\right )}^5}{5}-\frac {2\,{\sin \left (x\right )}^3}{3}+\sin \left (x\right )}{a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________